﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using System.Web.Routing;

namespace Guline.Iuh.TichLuy
{
    public class RouteConfig
    {
        public static void RegisterRoutes(RouteCollection routes)
        {
            routes.IgnoreRoute("{resource}.axd/{*pathInfo}");
            routes.MapRoute(
                name: "Diemtichluy",
                url: "ket-qua-diem-tich-luy-iuh.html",
                defaults: new { controller = "Home", action = "Result" }
            );
            routes.MapRoute(
                name: "Gioithieu",
                url: "gioi-thieu.html",
                defaults: new { controller = "Home", action = "About" }
            );
            routes.MapRoute(
               name: "Lienhe",
               url: "lien-he.html",
               defaults: new { controller = "Home", action = "Contact" }
           );
            routes.MapRoute(
              name: "Home",
              url: "diem-tich-luy-iuh.html",
              defaults: new { controller = "Home", action = "Index" }
          );
            routes.MapRoute(
              name: "ViewNew",
              url: "xem-diem-tich-luy-sinh-vien.html",
              defaults: new { controller = "Home", action = "ViewNew" }
          );
            routes.MapRoute(
                name: "Default",
                url: "{controller}/{action}/{id}",
                defaults: new { controller = "Home", action = "Index", id = UrlParameter.Optional }
            );
        }
    }
}